#ifndef __WEATHER_LIB_H__
#define __WEATHER_LIB_H__

//自定义文字，自定义图片字库生成规则
//比如16*16 占了2列， 字库引索就2 ，32 占了4列，字库引索就4
//因为oled配置原因，我要将字体倒置， 所以就是，用的逐列式 顺向
//同时代码中的赋值OLED_GRAM[n+64][7-i] = day_sunny[n][i];， n+64 是测试，64 是横向 [7-i + y] 7-1 是倒置， 反向就i, 同时字模为逆向 y是y轴偏移

//0		sunny			白天晴
//1		clear			夜晚晴
//2		Fair			国外晴
//3		fair			国外夜晚晴
//4 	cloudy			多云
//5		partly cloudy	晴间多云
//6		partly cloudy	夜晚晴间多云
//7		mostly cloudy	大部多云
//8		mostly cloudy	夜晚大部多云
//9		overcast		阴
//10	shower			阵雨
//11	Thundershower	雷阵雨
//12	Thundershower with Hail	雷阵雨伴有冰雹
//13	Light Rain		小雨
//14	Moderate Rain	中雨
//15	Heavy Rain		大雨
//16	Storm			暴雨
//17	Heavy Storm		大暴雨
//18	Severe Storm	特大暴雨
//19	Ice Rain		冻雨
//20	Sleet			雨夹雪
//21	Snow Flurry		阵雪
//22	Light Snow		小雪
//23	Moderate Snow	中雪
//24	Heavy Snow		大雪
//25	Snowstorm		暴雪
//26	Dust			浮尘
//27	Sand			扬沙
//28	Duststorm		沙尘暴
//29	Sandstorm		强沙尘暴
//30	Foggy			雾
//31	Haze			霾
//32	Windy			风
//33	Blustery		大风
//34	Hurricane		飓风
//35	Tropical Storm	热带风暴
//36	Tornado			龙卷风
//code 0 day sunny
const char day_sunny[44][4] =
    {
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFC, 0x3F, 0xFF},
        {0xFF, 0xFC, 0x3F, 0xFF},
        {0xFF, 0xFC, 0x3F, 0xFF},
        {0xFF, 0xFC, 0x3F, 0xFF},
        {0xFC, 0x7C, 0x3E, 0x3F},
        {0xF8, 0x3C, 0x3C, 0x1F},
        {0xF8, 0x1C, 0x38, 0x1F},
        {0xFC, 0x0F, 0xF0, 0x3F},
        {0xFE, 0x08, 0x10, 0x7F},
        {0xFF, 0x90, 0x09, 0xFF},
        {0xFF, 0xE0, 0x07, 0xFF},
        {0xFF, 0xC0, 0x03, 0xFF},
        {0xC0, 0x40, 0x02, 0x03},
        {0xC0, 0x40, 0x02, 0x03},
        {0xC0, 0x40, 0x02, 0x03},
        {0xC0, 0x40, 0x02, 0x03},
        {0xFF, 0xC0, 0x03, 0xFF},
        {0xFF, 0xE0, 0x07, 0xFF},
        {0xFF, 0x90, 0x09, 0xFF},
        {0xFE, 0x08, 0x10, 0x7F},
        {0xFC, 0x0F, 0xF0, 0x3F},
        {0xF8, 0x1C, 0x38, 0x1F},
        {0xF8, 0x3C, 0x3C, 0x1F},
        {0xFC, 0x7C, 0x3E, 0x3F},
        {0xFF, 0xFC, 0x3F, 0xFF},
        {0xFF, 0xFC, 0x3F, 0xFF},
        {0xFF, 0xFC, 0x3F, 0xFF},
        {0xFF, 0xFC, 0x3F, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF}, /*"C:\Users\kepei\Pictures\weather\d00.bmp",0*/

};

const char clear[44][4] =
    {
        {0x3F, 0xFF, 0xFF, 0xFC},
        {0x7F, 0xFF, 0xFF, 0xFE},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFD, 0xFF},
        {0xFF, 0xFF, 0xFD, 0xFF},
        {0xFF, 0xFF, 0xFC, 0x7F},
        {0xFF, 0xFF, 0xFE, 0x3F},
        {0xFF, 0xFF, 0xFE, 0x1F},
        {0xFF, 0xFF, 0xFC, 0x1F},
        {0xFF, 0xFF, 0xFC, 0x0F},
        {0xFF, 0xFF, 0xFC, 0x0F},
        {0xFF, 0xFF, 0xFC, 0x0F},
        {0xFF, 0xFF, 0xF8, 0x0F},
        {0xFF, 0xFF, 0xF0, 0x0F},
        {0xEF, 0xFF, 0xF0, 0x0F},
        {0xE7, 0xFF, 0xC0, 0x0F},
        {0xE1, 0xFF, 0x80, 0x0F},
        {0xF0, 0x1C, 0x00, 0x0F},
        {0xF0, 0x00, 0x00, 0x1F},
        {0xF0, 0x00, 0x00, 0x1F},
        {0xF8, 0x00, 0x00, 0x3F},
        {0xFC, 0x00, 0x00, 0x7F},
        {0xFE, 0x00, 0x01, 0xFF},
        {0xFF, 0x80, 0x03, 0xFF},
        {0xFF, 0xE0, 0x0F, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0x7F, 0xFF, 0xFF, 0xFE},
        {0x3F, 0xFF, 0xFF, 0xFC}, /*"C:\Users\kepei\Pictures\weather\n00.bmp",0*/
};

const char cloudy[44][4] =
    {

        {0x3F, 0xFF, 0xFF, 0xFC},
        {0x7F, 0xFF, 0xFF, 0xFE},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFC, 0x7F, 0xFF},
        {0xFF, 0xFC, 0x7F, 0xFF},
        {0xFF, 0x7C, 0x7F, 0xFF},
        {0xFE, 0x3C, 0x7E, 0xFF},
        {0xFF, 0x1C, 0x7C, 0x7F},
        {0xFF, 0x8C, 0x78, 0xFF},
        {0xFF, 0xCF, 0xF1, 0xCF},
        {0xFF, 0xF8, 0x33, 0x8F},
        {0xFF, 0xF0, 0x1F, 0x0F},
        {0xFF, 0xE0, 0x0C, 0x0F},
        {0xF0, 0x20, 0x0C, 0x0F},
        {0xF0, 0x20, 0x10, 0x0F},
        {0xF0, 0x20, 0x10, 0x0F},
        {0xFF, 0xE0, 0x30, 0x0F},
        {0xFF, 0xF0, 0x60, 0x0F},
        {0xFF, 0xF9, 0xC0, 0x0F},
        {0xFF, 0xCE, 0x00, 0x0F},
        {0xFF, 0x8C, 0x00, 0x0F},
        {0xFF, 0x1C, 0x20, 0x0F},
        {0xFE, 0x38, 0x38, 0x0F},
        {0xFF, 0x78, 0x18, 0x0F},
        {0xFF, 0xF8, 0x08, 0x0F},
        {0xFF, 0xF8, 0x08, 0x0F},
        {0xFF, 0xF8, 0x08, 0x0F},
        {0xFF, 0xF8, 0x08, 0x0F},
        {0xFF, 0xF8, 0x0C, 0x0F},
        {0xFF, 0xFC, 0x04, 0x0F},
        {0xFF, 0xFC, 0x07, 0x0F},
        {0xFF, 0xFE, 0x01, 0xFF},
        {0xFF, 0xFF, 0x00, 0x1F},
        {0xFF, 0xFF, 0xE0, 0x1F},
        {0xFF, 0xFF, 0xF0, 0x3F},
        {0xFF, 0xFF, 0xFD, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0xFF, 0xFF, 0xFF, 0xFF},
        {0x7F, 0xFF, 0xFF, 0xFE},
        {0x3F, 0xFF, 0xFF, 0xFC}, /*"C:\Users\kepei\Pictures\weather\d01.bmp",0*/
};
const char min[16][2] =
    {
        {0x10, 0xB8},
        {0xEF, 0xC8},
        {0x28, 0x88},
        {0x2A, 0xAA},
        {0x29, 0x99},
        {0x28, 0x8A},
        {0x2F, 0xFC},
        {0x20, 0x89},
        {0x01, 0x82},
        {0x0E, 0x04},
        {0xF1, 0xC8},
        {0x10, 0x30},
        {0x10, 0xCC},
        {0x1F, 0x02},
        {0x10, 0x01},
        {0x00, 0x00}, /*"敏",0*/
};

#endif